<?php require VIEW_PATH.'/header.php';?>
<body>

	<div class="hd-menu-list">
		<ul>
			<li class="active"><a href="#">订单列表</a></li>
			<!-- <li><a href="{{U('add')}}">添加类型</a></li> -->
		</ul>
	</div>

	<table class="hd-table hd-table-form hd-form">
		<thead>
			<tr>
				<td class="hd-w100">id</td>
				<td>订单号</td>
				<td>收货人</td>
				<td>支付方式</td>
				<td>收货地址</td>
				<td>总价/元</td>
				<td class="">订单状态</td>
				<td class="">订货时间</td>
			</tr>
		</thead>
		<tbody>

			{{foreach from="$data" value="$v"}}
			<tr>
				<td class="hd-w100">{{$v['order_id']}}</td>
				<td >
					{{$v['buy_order_num']}}
				</td>
				<td >
					{{$v['consignee']}}
				</td>
				<td >
					{{if value="$v['pay_way']==0"}}
					货到付款
					{{endif}}
				</td>
				<td >
					{{$v['rec_address']}}
				</td>
				<td >
					{{$v['total_price']}}
				</td>
				<td >
					{{if value="$v['order_state']==0"}}
					等待付款
					{{endif}}
				</td>
				<td>
					{{date('Y-m-d H:i:s',$v['create_at'])}}
				</td>
			</tr>
			{{endforeach}}

		</tbody>
	</table>

</body>
</html>